package com.lanou.web.controller;

import com.lanou.service.CatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * Created by QuChao on 2018/12/7
 */
@RestController
public class CatController {
    @Autowired
    private CatService catService;

    @GetMapping("/rest/itemcat/all")
    public Map<String, Object> showAllCat() {
        return catService.showAllCat();
    }
}
